<!--{template header}-->
<div  class="container">
  <div id="main">
      <div class="buy-user-info">
      <div class="media">
        <div class="avatar">
          <!--{userpic($arrTaskInfo['uid'],'middle')}-->
        </div>
        <div class="media-body">
          <strong class="meida-heading"> <span class="money"><sub>￥</sub>{$arrTaskInfo['task_cash']}</span> {$arrTaskInfo['task_title']}</strong>
          <ul class="user-meta">
            <li>{$arrModelInfo['model_name']}模式</li>
            <li>
              <i class="fa fa-money"></i> 已托管：￥{$arrTaskInfo['task_cash']}
            </li>
          </ul>
        </div>
      </div>
    </div>
<div class="turnaround">
    <h2 class="min-title">
      我来交稿
    </h2>
    <div class="turnaround-body">
      <div class="col-sm-12">

        <form role="form" class="turnaround-form"
        	action="index.php?do=taskhandle&op=turnaround&taskId={$taskId}" method="post"
        	id = "editTurnaroundForm" name = "editTurnaroundForm"
        	enctype="application/x-www-form-urlencoded">
        	<input type="hidden" name="formhash" id="formhash" value="{FORMHASH}">
          <div class="form-group">
            <label for="tar_content">描述</label>
            <textarea id="tar_content" name="tar_content"  ></textarea>
          </div>

          <!--加载上传组件-->
		<!--{template turnaroundfilelist}-->
		
		  {if $arrConfig['work_hidden']}
			<div class="form-group">
            <label for="work_hidden">是否隐藏我的稿件</label>
			<label for="work_hidden_2"><input type="radio" name="work_hidden" id="work_hidden_2" value="1">是</label>
            <label for="work_hidden_1"><input type="radio" checked="checked" name="work_hidden" id="work_hidden_1" value="0">否</label>
			<span>隐藏稿件后您的报名信息只有您和雇主可见</span>
          </div>
		  {/if}
          <div class="text-center">
            <a href="javascript:history.back();">返回</a>
            <button type="submit" class="btn btn-default">交稿</button>
          </div>
        </form>
      </div>
    </div>
  </div>
    </div>
  </div>
<script src="static/js/uploadify/jquery.uploadify.min.js?r={RANDOM_PARA}" type="text/javascript"></script>
<link href="static/js/uploadify/uploadify.css" rel="stylesheet">
 <script type="text/javascript" src="{$_K['siteurl']}/static/js/ueditor/ueditor.config.js"></script>
					<!-- 编辑器源码文件 -->
					<script type="text/javascript" src="{$_K['siteurl']}/static/js/ueditor/ueditor.all.min.js"></script>
					<script type="text/javascript" src="{$_K['siteurl']}/static/js/ueditor/lang/zh-cn/zh-cn.js"></script>
					 <!-- 实例化编辑器 -->
				    <script type="text/javascript">
				        var ue = UE.getEditor('tar_content', {
				            //这里可以选择自己需要的工具按钮名称,此处仅选择如下五个
				        	initialFrameWidth: '100%',
				        	initialFrameHeight: '250'
				        });
				    </script>
<script type="text/javascript">
$(function(){
	//基本资料
	$('#editTurnaroundForm').scojs_valid({
	    rules: {
	    	tar_content: ['not_empty',{'min_length': 10},{'max_length': 1000}]
	    },
	    messages: {
	    	tar_content: {
				not_empty: "请输入稿件描述",
				min_length: "最少输入10字数",
				max_length: "最多可以输入:1000字数"
			}
	    },
	    wrapper:'.form-group'
	    ,onSuccess: function(response, validator) {
	    	  tipsUser(response.data,response.status);
	    	  tipsOp(response.data);
				if(response.url){
					setTimeout(function(){window.location.href=response.url;},2000);
				}
	    }
	});
	})
</script>

<!--{template footer}-->